import request from '@/utils/request';

const publicationApi = {};


publicationApi.page = (params) => {
	return request({
		url: '/platform-api/publication/page',
		method: 'get',
		params: params,
	})
}
publicationApi.add = (params) => {
	return request({
		url: '/platform-api/publication',
		method: 'post',
		data: params,
	})
}
publicationApi.update = (params) => {
	return request({
		url: '/platform-api/publication',
		method: 'put',
		data: params,
	})
}
publicationApi.get = (id) => {
	return request({
		url: '/platform-api/publication/' + id,
		method: 'get',
	})
}
publicationApi.delete = (id) => {
	return request({
		url: '/platform-api/publication/' + id,
		method: 'delete',
	})
}


export default publicationApi